using System;
using Atlantic.XpoAutomaticProperties;
using DevExpress.Xpo;

namespace Tests.ObjectModel
{
   [XpoAutomaticProperties]
   public class Contract : Entity
   {
      #region Constructors

      public Contract()
      {
      }

      public Contract(Session session) : base(session)
      {
      }

      #endregion

      #region Properties

      [Association("Customer-AllContracts", typeof(Customer))]
      public XPCollection AllCustomers { get; private set; }

      [Association("Customer-Contracts")]
      public Customer Customer { get; set; }

      public DateTime Date { get; set; }

      #endregion
   }
}